package com.huage.courseplatform.satoken.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huage.courseplatform.framework.config.MybatisRedisCache;
import com.huage.courseplatform.satoken.model.entity.Role;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
//@CacheNamespace(implementation= MybatisRedisCache.class,eviction= MybatisRedisCache.class)
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleListByUserId(String userId);

}
